<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>The SolrGenericResponse class</title>

 </head>
 <body><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="solrpingresponse.getresponse.html">SolrPingResponse::getResponse</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="solrgenericresponse.construct.html">SolrGenericResponse::__construct</a></div>
 <div class="up"><a href="book.solr.html">Solr</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div><hr /><div id="class.solrgenericresponse" class="reference">

 <h1 class="title">The SolrGenericResponse class</h1>
 

 <div class="partintro"><p class="verinfo">(PECL solr &gt;= 0.9.2)</p>


  <div class="section" id="solrgenericresponse.intro">
   <h2 class="title">简介</h2>
   <p class="para">
   Represents a response from the solr server.
   </p>
  </div>


  <div class="section" id="solrgenericresponse.synopsis">
   <h2 class="title">类摘要</h2>


   <div class="classsynopsis">
    <div class="ooclass"></div>


    <div class="classsynopsisinfo">
     <span class="ooclass">
      <span class="modifier">final</span>
      <strong class="classname">SolrGenericResponse</strong>
     </span>
     
     <span class="ooclass">
      <span class="modifier">extends</span>
      <a href="class.solrresponse.html" class="classname">SolrResponse</a>
     </span>
     {</div>

    <div class="classsynopsisinfo classsynopsisinfo_comment">/* 常量 */</div>
    <div class="fieldsynopsis">
     <span class="modifier">const</span>
     <span class="type">integer</span>
      <var class="fieldsynopsis_varname"><a href="class.solrgenericresponse.html#solrgenericresponse.constants.parse-solr-obj"><var class="varname">PARSE_SOLR_OBJ</var></a></var>
     <span class="initializer"> = 0</span>
    ;</div>

    <div class="fieldsynopsis">
     <span class="modifier">const</span>
     <span class="type">integer</span>
      <var class="fieldsynopsis_varname"><a href="class.solrgenericresponse.html#solrgenericresponse.constants.parse-solr-doc"><var class="varname">PARSE_SOLR_DOC</var></a></var>
     <span class="initializer"> = 1</span>
    ;</div>


    <div class="classsynopsisinfo classsynopsisinfo_comment">/* 继承的属性 */</div>
    <div class="fieldsynopsis">
     <span class="modifier">const</span>
     <span class="type">integer</span>
      <var class="fieldsynopsis_varname"><a href="class.solrresponse.html#solrresponse.constants.parse-solr-obj"><var class="varname">SolrResponse::PARSE_SOLR_OBJ</var></a></var>
     <span class="initializer"> = 0</span>
    ;</div>
<div class="fieldsynopsis">
     <span class="modifier">const</span>
     <span class="type">integer</span>
      <var class="fieldsynopsis_varname"><a href="class.solrresponse.html#solrresponse.constants.parse-solr-doc"><var class="varname">SolrResponse::PARSE_SOLR_DOC</var></a></var>
     <span class="initializer"> = 1</span>
    ;</div>
<div class="fieldsynopsis">
     <span class="modifier">protected</span>
     <span class="type">integer</span>
      <var class="varname"><a href="class.solrresponse.html#solrresponse.props.http-status">$<var class="varname">http_status</var></a></var>
    ;</div>
<div class="fieldsynopsis">
     <span class="modifier">protected</span>
     <span class="type">integer</span>
      <var class="varname"><a href="class.solrresponse.html#solrresponse.props.parser-mode">$<var class="varname">parser_mode</var></a></var>
    ;</div>
<div class="fieldsynopsis">
     <span class="modifier">protected</span>
     <span class="type">bool</span>
      <var class="varname"><a href="class.solrresponse.html#solrresponse.props.success">$<var class="varname">success</var></a></var>
    ;</div>
<div class="fieldsynopsis">
     <span class="modifier">protected</span>
     <span class="type">string</span>
      <var class="varname"><a href="class.solrresponse.html#solrresponse.props.http-status-message">$<var class="varname">http_status_message</var></a></var>
    ;</div>
<div class="fieldsynopsis">
     <span class="modifier">protected</span>
     <span class="type">string</span>
      <var class="varname"><a href="class.solrresponse.html#solrresponse.props.http-request-url">$<var class="varname">http_request_url</var></a></var>
    ;</div>
<div class="fieldsynopsis">
     <span class="modifier">protected</span>
     <span class="type">string</span>
      <var class="varname"><a href="class.solrresponse.html#solrresponse.props.http-raw-request-headers">$<var class="varname">http_raw_request_headers</var></a></var>
    ;</div>
<div class="fieldsynopsis">
     <span class="modifier">protected</span>
     <span class="type">string</span>
      <var class="varname"><a href="class.solrresponse.html#solrresponse.props.http-raw-request">$<var class="varname">http_raw_request</var></a></var>
    ;</div>
<div class="fieldsynopsis">
     <span class="modifier">protected</span>
     <span class="type">string</span>
      <var class="varname"><a href="class.solrresponse.html#solrresponse.props.http-raw-response-headers">$<var class="varname">http_raw_response_headers</var></a></var>
    ;</div>
<div class="fieldsynopsis">
     <span class="modifier">protected</span>
     <span class="type">string</span>
      <var class="varname"><a href="class.solrresponse.html#solrresponse.props.http-raw-response">$<var class="varname">http_raw_response</var></a></var>
    ;</div>
<div class="fieldsynopsis">
     <span class="modifier">protected</span>
     <span class="type">string</span>
      <var class="varname"><a href="class.solrresponse.html#solrresponse.props.http-digested-response">$<var class="varname">http_digested_response</var></a></var>
    ;</div>

    
    <div class="classsynopsisinfo classsynopsisinfo_comment">/* 方法 */</div>
    <div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="methodname"><a href="solrgenericresponse.construct.html" class="methodname">__construct</a></span>
    ( <span class="methodparam">void</span>
   )</div>
<div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="type">void</span><span class="methodname"><a href="solrgenericresponse.destruct.html" class="methodname">__destruct</a></span>
    ( <span class="methodparam">void</span>
   )</div>

    
    <div class="classsynopsisinfo classsynopsisinfo_comment">/* 继承的方法 */</div>
    <div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="type">string</span><span class="methodname"><a href="solrresponse.getdigestedresponse.html" class="methodname">SolrResponse::getDigestedResponse</a></span>
    ( <span class="methodparam">void</span>
   )</div>
<div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="type">int</span><span class="methodname"><a href="solrresponse.gethttpstatus.html" class="methodname">SolrResponse::getHttpStatus</a></span>
    ( <span class="methodparam">void</span>
   )</div>
<div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="type">string</span><span class="methodname"><a href="solrresponse.gethttpstatusmessage.html" class="methodname">SolrResponse::getHttpStatusMessage</a></span>
    ( <span class="methodparam">void</span>
   )</div>
<div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="type">string</span><span class="methodname"><a href="solrresponse.getrawrequest.html" class="methodname">SolrResponse::getRawRequest</a></span>
    ( <span class="methodparam">void</span>
   )</div>
<div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="type">string</span><span class="methodname"><a href="solrresponse.getrawrequestheaders.html" class="methodname">SolrResponse::getRawRequestHeaders</a></span>
    ( <span class="methodparam">void</span>
   )</div>
<div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="type">string</span><span class="methodname"><a href="solrresponse.getrawresponse.html" class="methodname">SolrResponse::getRawResponse</a></span>
    ( <span class="methodparam">void</span>
   )</div>
<div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="type">string</span><span class="methodname"><a href="solrresponse.getrawresponseheaders.html" class="methodname">SolrResponse::getRawResponseHeaders</a></span>
    ( <span class="methodparam">void</span>
   )</div>
<div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="type">string</span><span class="methodname"><a href="solrresponse.getrequesturl.html" class="methodname">SolrResponse::getRequestUrl</a></span>
    ( <span class="methodparam">void</span>
   )</div>
<div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="type">SolrObject</span><span class="methodname"><a href="solrresponse.getresponse.html" class="methodname">SolrResponse::getResponse</a></span>
    ( <span class="methodparam">void</span>
   )</div>
<div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="type">bool</span><span class="methodname"><a href="solrresponse.setparsemode.html" class="methodname">SolrResponse::setParseMode</a></span>
    ([ <span class="methodparam"><span class="type">int</span> <code class="parameter">$parser_mode</code><span class="initializer"> = 0</span></span>
  ] )</div>
<div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="type">bool</span><span class="methodname"><a href="solrresponse.success.html" class="methodname">SolrResponse::success</a></span>
    ( <span class="methodparam">void</span>
   )</div>


   }</div>


  </div>

  

  <div class="section" id="solrgenericresponse.constants">
   <h2 class="title">预定义常量</h2>
   <div class="section" id="solrgenericresponse.constants.types">
    <h2 class="title">SolrGenericResponse Class constants</h2>
    <dl>


     
      <dt id="solrgenericresponse.constants.parse-solr-obj"><strong><code>SolrGenericResponse::PARSE_SOLR_OBJ</code></strong></dt>

      <dd>

       <p class="para">Documents should be parsed as SolrObject instances</p>
      </dd>

     

     
      <dt id="solrgenericresponse.constants.parse-solr-doc"><strong><code>SolrGenericResponse::PARSE_SOLR_DOC</code></strong></dt>

      <dd>

       <p class="para">Documents should be parsed as SolrDocument instances.</p>
      </dd>

     

    </dl>

   </div>
  </div>



 </div>

 















<h2>Table of Contents</h2><ul class="chunklist chunklist_reference"><li><a href="solrgenericresponse.construct.html">SolrGenericResponse::__construct</a> — Constructor</li><li><a href="solrgenericresponse.destruct.html">SolrGenericResponse::__destruct</a> — Destructor</li></ul>
</div>
<hr /><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="solrpingresponse.getresponse.html">SolrPingResponse::getResponse</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="solrgenericresponse.construct.html">SolrGenericResponse::__construct</a></div>
 <div class="up"><a href="book.solr.html">Solr</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div></body></html>
